<%-- 
    Document   : CalificacionAsistenciaDeFeria
    Created on : 19-may-2014, 18:00:12
    Author     : Isaac Paliza <anndysaac@hotmail.com>
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" href="css/index/estilosIndex___.css" />
        <title>JSP Page</title>
    </head>
    <body>
        <header>
            <hgroup>
                <h1>Distribuidora Castañita</h1>
                <h2></h2>
            </hgroup>
            <samp style=color:#FA6900;>Asistencia de Feria</samp>
        </header>
        <section>
            <section>
                <article id="v">
                    <figcaption>
                        <table style=color:#FFFFFF; bgcolor= "#8A9B0F" width="100%" height="100%">
                            <c:forEach items="${requestScope['DatosdeAsistenciaCabezera']}" var="d" varStatus="c">
                                <tr>
                                    <th colspan="2">Lista de Asistencia</th>
                                </tr>
                                <tr align="left">
                                    <th width="15%">Feria</th>
                                    <th>${d['nombre']}</th>
                                </tr>
                                <tr align="left">
                                    <th>Ubicacion</th>
                                    <th>${d['ubicacion']}</th>
                                </tr>
                                <tr align="left">
                                    <th>Fecha</th>
                                    <th>${d['fecha']}</th>
                                </tr>

                            </c:forEach>
                        </table>
                    </figcaption>
                </article>
            </section>
            <article id="fg">
                <table border="1px" rules="rows" width="100%" height="100%">
                    <tr bgcolor= "#FBB829" border="1px">
                        <th align="center">N.</th>
                        <th></th>
                        <th align="left">Nombre y Apellidos</th>
                        <th>Calificacion</th>
                        <th>Comentario</th>
                    </tr>
                <form action="CalificacionAsistenciaDeFeria" method="GET" style="display:inline">
                <c:forEach items="${requestScope['DatosdeAsistencia']}" var="d" varStatus="c">
                    <c:choose>
                        <c:when test="${(c.count % 2) == 0}"></c:when>
                        <c:otherwise><tr></c:otherwise>
                    </c:choose>
                        <td align="center">${c.count}</td>
                        <td><input type="hidden" name="idAsistencia" value="${d['idAsistencia']}"/></td>
                        <td>${d['nombre']} ${d['apellidos']}</td>
                        <td align="center">
                            <select value="${d['calificacion']}" name="calificacionm" onchange="opcionSelect(this.form)">
                                <option value="1">1</option>
                                <option value="2">2</option>
                                <option value="3" selected>3</option>
                                <option value="4">4</option>
                                <option value="5">5</option>
                            </select>
                            <IMG SRC="Vista/AdmDeFerias/AsistenciaDeFeria/star_full.png">
                        </td>
                        <td align="center">${d['observacion']}
                            <textarea cols=45 rows=2 name="comentario" ></textarea> 
                        </td>
                </tr>
                </c:forEach>
                <td colspan="5" align="right">
                    ${requestScope['Mensaje']}
                <input type="submit" name="GuardarCalificacion" value="Guardar Calificacion"/>    
                </td>
                </form>
                </table>
            </article>
        </section>
    </body>
</html>
